﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sponsoruknow.aspx.cs" Inherits="en_member_become" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SPONSOR UK NOW</title>
    <!-- #include file="/include/tag/en_cssjs.html" -->
    <script type="text/javascript">
        $(function() {

        $("#hideUserName").val($("#tbxUserName").val());
        $("#hidePhoneNum").val($("#tbxPhone").val());
        $("#hideMail").val($("#tbxUserMail").val());
        $("#hideNature").val($("#tbxNature").val());
            $("input:text").focus(function() {

                if ($(this).val() == this.defaultValue) {
                    $(this).val("");
                }
            }).blur(function() {

            });
            $('input[id$=tbxUserMail]').blur(function() {

                ValidateMail(false);
            });

            $('input[id$=tbxUserName]').blur(function() {

                ValidateUserInfo(false);
            });

            $('input[id=tbxPhone]').blur(function() {
                ValidatePhone(true);
            });

            $("#lkbSubmit").click(function() {
                ValidateInfo(true);
            });
        });

        //验证表单信息
        function ValidateInfo(flag) {
            ValidateMail(flag);
            ValidateUserInfo(flag);
            ValidatePhone(flag);
        }
        //手机号码验证
        function ValidatePhone(flag) {

            $('#errorMobile').find("span").empty().end().hide();
            var $phoneNum = $('input[id=tbxPhone]').val();
            if ($phoneNum == $("#hidePhoneNum").val()) {
                $phoneNum = "";
            }
            if (flag) {
                if (($phoneNum != "") && ($phoneNum != $("#hidePhoneNum").val())) {
                    var phoneReg = /^1[3|4|5|8][0-9]\d{4,8}$/;

                    if (!phoneReg.test($phoneNum)) {
                        $('#errorMobile').show().append("<span>Invalid mobile phone number. Please try again.</span>");
                    }
                }
            }
          
           

        }

        //邮箱信息验证
        function ValidateMail(flag) {
            var mailFlag = false;
            $('#errorEmail').find("span").empty().end().hide();
            var $userMail = $('input[id$=tbxUserMail]').val();
            var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
            if ($userMail == $("#hideMail").val()) {
                $userMail = "";
            }
            if (flag) {
                if ($.trim($userMail) == "") {
                    $('#errorEmail').show().append("<span>Please enter your Email address.</span>");
                }
                else {
                    if (!emailReg.test($userMail)) {
                        $('#errorEmail').show().append("<span>Please Enter a valid email address.</span>");
                    }
                    else {
                        mailFlag = true;
                    }
                }
            }
            else {
                if ($.trim($userMail) != "") {
                    if (!emailReg.test($userMail)) {
                        $('#errorEmail').show().append("<span>Please Enter a valid email address.</span>");
                    }
                    else {
                        mailFlag = true;
                    }
                }
            }
            if (mailFlag) {
                $('#imageEmailInfo').show().attr('src', 'images/UK_icon05.gif');
            }
            else {
                $('#imageEmailInfo').show().attr('src', 'images/UK_icon06.gif');
            }

        }

        //用户信息验证
        function ValidateUserInfo(flag) {
            var userNameflag = false;
            $('#errorUserName').find("span").empty().end().hide();
            var $userName = $('input[id$=tbxUserName]').val();
            var $userNameReg = /^\w+$/; //只能输入由数字、26个英文字母或者下划线组成的字符串
            if ($userName == $("#hideUserName").val()) {
                $userName = "";
            }
            if (flag) {
                if ($.trim($userName) == "") {
                    $('#errorUserName').show().append("<span>Please enter your username.</span>");
                }
                else {
                    if ($userName.length < 4 || $userName.length > 30) {
                        $('#errorUserName').show().append("<span>Please use 4 to 30 characters.</span>");
                    }
                    else {
                        if (!$userNameReg.test($userName)) {
                            $('#errorUserName').show().append("<span>Username can contain only letters [a–z], numbers [0–9] or underscores [_]. Please try again.</span>");
                        }
                        else {
                            userNameflag = true;
                        }
                    }

                }
            }
            else {
                if ($.trim($userName) != "") {
                    if ($userName.length < 4 || $userName.length > 30) {
                        $('#errorUserName').show().append("<span>Please use 4 to 30 characters.</span>");
                    }
                    else {
                        if (!$userNameReg.test($userName)) {
                            $('#errorUserName').show().append("<span>Username can contain only letters [a–z], numbers [0–9] or underscores [_]. Please try again.</span>");
                        }
                        else {
                            userNameflag = true;
                        }
                    }
                }
                
            }
//            $.ajax({
//                type: "POST",
//                url: "become.aspx/IsUserAvailable",
//                data: "{'username': '" + $userName + "'}",
//                contentType: "application/json; charset=utf-8",
//                dataType: "json",
//                async: false,
//                success: function(msg) {
//                    var delay = function() {
//                        userNameflag = AjaxSucceeded(msg);
//                    };

//                    setTimeout(delay, 1000);
//                },
//                error: Failed
//            });
            if (userNameflag) {
                $('#imageUserNameInfo').show().attr('src', 'images/UK_icon05.gif');
            }
            else {
                $('#imageUserNameInfo').show().attr('src', 'images/UK_icon06.gif');
            }
        }

        function AjaxSucceeded(data) {

            if (eval(data.d) == "1") {
                $('dl.leave').find('dd').eq(0).append("<span style='color:red'>Username already exist.</span>");

            }
        }

        function Failed() {
        }
       
    </script>

</head>
<body>
    <form id="form1" runat="server">
      
    <div id="main">


        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
  <div class="ukContent">
    <div class="ukLeft">
      <div class="uklogo"><a href="home.html"><img src="images/UK_logo.gif" alt="UK NOW" /></a></div>
      <dl class="ukNav">
        <dt class="over"><a href="home.html"><img src="images/UK_nav01.gif" alt="home" border="0" /><img src="images/UK_nav01_1_1.gif" alt="home" style="display:none" /></a></dt>
        <dt class="over"><a href="aboutuknow.html"><img src="images/UK_nav02.gif" alt="INTRODUCTION" border="0" /><img src="images/UK_nav02_1_1.gif" alt="INTRODUCTION" style="display:none"  /></a></dt>
        <dt class="over"><a href="eventcalendar.html"><img src="images/UK_nav04.gif" alt="EVENT CALENDAR" border="0" /><img src="images/UK_nav04_1_1.gif" alt="EVENT CALENDAR" style="display:none"  /></a></dt>
        <dt class="over"><a href="interactivespace.aspx"><img src="images/UK_nav05.gif" alt="INTERACTIVE SPACE" border="0" /><img src="images/UK_nav05_1_1.gif" alt="INTERACTIVE SPACE" style="display:none"  /></a></dt>
        <dt><a href="sponsors.html"><img src="images/UK_nav03_1.gif" alt="SPONSORS" border="0" /></a></dt>
        <dd class="over"><a href="sponsors.html"><img src="images/UK_nav03_s01.gif" alt="FOUNDER SPONSORS" border="0" /><img src="images/UK_nav03_s01_1_1.gif" alt="FOUNDER SPONSORS" style="display:none" /></a></dd>
        <dd><img src="images/UK_nav03_s02_1.gif" alt="sponsor UK Now" /></dd>
      </dl>
     <dl class="ukSearch">
        <dt>
         <input name="" type="text" id="SearchValue" value="SEARCH" onfocus="this.value=''"/>
        </dt>
        <dd><a href="#"><img src="images/UK_bor03.gif" alt="" border="0" id="Search" /></a></dd>
      </dl>
      <div id="leftbar_reg" class="leftbar_reg"></div>
      <div id="leftbar_talk" class="leftbar_talk">
      	<!--
          Flash "大家在讨论"
          弹出Flash页面的尺寸为：700px * 640px
          Flash中按钮调用的js代码为：          
          tb_show('','talk.html?keepThis=true&TB_iframe=true&height=630&width=671','');  
        -->
      </div>
      <div id="leftbar_impression"><a href="vote.html?keepThis=true&TB_iframe=true&height=604&width=576" class="thickbox"><img src="images/leftbar_impression.jpg" alt="" /></a></div>
      <script type="text/javascript">
	    var fo = new FlashObject("swf/leftbar_reg.swf", "Flash", "155", "150" , "9", "#ffffff");
		fo.addParam("menu", "false");
		fo.addParam("scale", "noscale");
		fo.addParam("wmode", "transparent");
		fo.write("leftbar_reg");
      </script>
      <script type="text/javascript">
	    var fo = new FlashObject("swf/leftbar_talk.swf", "Flash", "155", "150" , "9", "#ffffff");
		fo.addParam("menu", "false");
		fo.addParam("scale", "noscale");
		fo.addParam("wmode", "transparent");
		fo.write("leftbar_talk");
      </script>
	  </div>
    <div class="ukRight">
      <div class="ukTopLink">
        <p><a href="/cn/sponsoruknow.aspx">CN</a> <span>|</span> EN</p>
      	<p class="share"><span>Follow us</span> <a href="javascript:;"><img src="images/UK_icon01_1.gif" id="sinaWeibo" alt="" /></a> <a href="javascript:;"><img src="images/UK_icon02_1.gif" alt="" id="kaixin" /></a> <a href="javascript:;"><img src="images/UK_icon03_1.gif" alt="" id="bouban" /></a> <a href="javascript:;"><img src="images/UK_icon04_1.gif" alt="" id="qqWebbo" /></a> <a href="http://page.renren.com/ibc" target="_blank"><img src="images/UK_icon12_1.gif" alt="" id="renren" /></a></p>
      	<dl>
          <dt><a href="register.aspx"><span>Register</span></a></dt>
          <dd><a href="login.html?keepThis=true&TB_iframe=true&height=290&width=472" class="thickbox"><span>Login</span></a></dd>
        </dl>
      </div>
      <h1><img src="images/UK_title02.gif" alt="sponsor one of uk now's exciting events!" /></h1>
	  
	  <div class="ukDiagoe">
        <h2><img src="images/UK_sponsor_pic01.jpg"  alt="" /></h2>
        <p>We are now expanding <strong>opportunities for Chinese and international companies</strong> to engage in the festival through sponsorship of 
specific events.  We also offer the opportunity for <strong>media partnerships and/or affiliation opportunities</strong>.  The benefits of <strong>brand visibility</strong> and <strong>exposure</strong> available in both the Chinese target market and amongst key audiences in the UK are unrivalled.  
Highlights include:</p>
        <p><img src="images/UK_sponsor_pic02.jpg" alt="" /></p>
      </div>
	  
	  <div class="ukBecome">
	  
	  If you would like to find out more, either contact us directly or leave your information as requested and we will contact you.
	  
	  
	  </div>
      
      <div class="ukSearchResults">
        <h3><span>01</span><span class="f12">CONTACT THE ORGANISERS </span>
          <div class="clear"></div>
        </h3>
        <dl class="contact">
          <dt>TEL</dt>
          <dd>86 (0)10 65906903 - 206 </dd>
          <dt>FAX</dt>
          <dd>86 (0)10 65900977</dd>
          <dt>EMAIL</dt>
          <dd>uk.now@britishcouncil.org.cn </dd>
          <dt>ADDRESS</dt>
          <dd>Cultural and Education Section, British Embassy 
            <br />
            4/F Landmark Building Tower 1, 8 Dongsanhuan Beilu, 100004<br /> 
            Beijing, China</dd>
        </dl>
        <div class="clear"></div>
      </div>
      <div class="ukSearchResults">
        <h3><span>02</span><span class="f12">LEAVE YOUR CONTACT INFORMATION</span>
          <div class="clear"></div>
        </h3>
        <dl class="leave">
          <dt>NAME (INDIVIDUAL OR COMPANY) <span>*</span></dt>
          <dd>
            <asp:TextBox ID="tbxUserName" runat="server" Text="NAME (INDIVIDUAL OR COMPANY)" MaxLength="30"></asp:TextBox>
          </dd>
          <dt class="red" style="display: none" id="errorUserName"></dt>
          <dt>EMAIL <span>*</span></dt>
          <dd>
            <asp:TextBox ID="tbxUserMail" runat="server" Text="Email"></asp:TextBox>
          </dd>
           <dt class="red" style="display: none" id="errorEmail"></dt>
          <dt>PHONE NUMBER </dt>
          <dd>
            <asp:TextBox ID="tbxPhone" runat="server" Text="Phone Number"></asp:TextBox>
          </dd>
		  <dt class="red" style="display: none" id="errorMobile"></dt>
		  
		   <dt>NATURE OF REQUEST </dt>
          <dd>
            <%--<input type="text" value="Sponsor / Media / Affiliation / Other etc" />--%>
              <asp:TextBox ID="tbxNature" runat="server" Text="Sponsor / Media / Affiliation / Other etc"></asp:TextBox>
          </dd>
		  
		  
		  
          <dt class="all">Required fields are marked <span>*</span></dt>
        </dl>
        <div class="clear"></div>
        <div class="ukSubmit">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
             <asp:LinkButton ID="lkbSubmit" runat="server" OnClick="lkbSubmit_Click"><img src="images/UK_submit.gif" alt="submit" id="submit" /></asp:LinkButton>
            </ContentTemplate>
            </asp:UpdatePanel>
                      
                    </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div id="footer">
    <dl>
      <dt><a href="http://www.britishcouncil.org.cn/en/china.htm" target="_blank"><img src="images/UK_Search_56.gif" alt="" border="0" /></a></dt>
      <dd>
        <p><a href="http://www.britishcouncil.org.cn/en/china.htm" target="_blank">British Council</a> | <a href="contactus.html">Contact Us</a> | <a href="privacy.html?keepThis=true&TB_iframe=true&height=500&width=542" class="thickbox">Privacy Policy</a> | <a href="sitemap.html">Site Map</a></p>
      </dd>
    </dl>
  </div>
</div>
    <asp:HiddenField ID="hideUserName" runat="server" />
    <asp:HiddenField ID="hidePhoneNum" runat="server" />
    <asp:HiddenField ID="hideMail" runat="server" />
    <asp:HiddenField ID="hideNature" runat="server" />
    </form>
    
   <!-- START OF SmartSource Data Collector TAG -->
<!-- Copyright (c) 1996-2009 WebTrends Inc.  All rights reserved. -->
<!-- Version: 8.6.2 -->
<!-- Tag Builder Version: 3.0  -->
<script src="js/bcwebtrends.js" type="text/javascript"></script>
<!-- ----------------------------------------------------------------------------------- -->
<!-- Warning: The two script blocks below must remain inline. Moving them to an external -->
<!-- JavaScript include file can cause serious problems with cross-domain tracking.      -->
<!-- ----------------------------------------------------------------------------------- -->
<script type="text/javascript">
    //<![CDATA[
    var _tag = new WebTrends();
    _tag.fpcdom = ".uknow.org.cn";
    _tag.dcsGetId();
    //]]>>
</script>
<script type="text/javascript">
    //<![CDATA[
    // Add custom parameters here.
    //_tag.DCSext.param_name=param_value;
    _tag.WT.sp = "China_uknow_sponsorUKNow";
    _tag.dcsCollect();
    //]]>>
</script>
<noscript>
<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="http://statse.webtrendslive.com/dcsozkqgb00000sh0y1unaabw_9e3r/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=8.6.2"/></div>
</noscript>
<!-- END OF SmartSource Data Collector TAG -->
 
</body>
</html>
